import java.util.Random;

public class t3 { 
	public static void main(String[] args) { 
		Random ran = new Random();
		int[] arr = new int[7];
		for(int i=0; i<arr.length; i++){
			arr[i] = ran.nextInt(33)+1;
			for(int j=0; j<i; j++){
				if(arr[i] == arr[j]){
					i--;
					break;
				}
			}
		}
		
		arr[6] = ran.nextInt(16)+1;

		for(int i=0; i<arr.length; i++){
			System.out.println(arr[i]);
		}

		
	}
}